
<%@ page import="les.Evento" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'evento.label', default: 'Evento')}" />
        <title>Mostrar Evento</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Inicio</a></span>
            <span class="menuButton"><g:link class="list" action="list">Listar Eventos</g:link></span>
            <g:if test="${session.usuarioLogado?.tipo == 'Jota'}">
            	<span class="menuButton"><g:link class="create" action="create">Novo Evento</g:link></span>
            </g:if>
        </div>
        <div class="body">
            <h1>Mostrar Evento</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.nome.label" default="Nome" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "nome")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.dataEHora.label" default="Data E Hora" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${eventoInstance?.dataEHora}" format="dd/MM/yyyy hh:mm"/></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.local.label" default="Local" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "local")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.detalhes.label" default="Detalhes" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "detalhes")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <g:if test="${session.usuarioLogado?.tipo == 'Jota'}">
            	<div class="buttons">
	                <g:form>
                    	<g:hiddenField name="id" value="${eventoInstance?.id}" />
                    	<span class="button"><g:actionSubmit class="edit" action="edit" value="Editar" /></span>
                    	<span class="button"><g:actionSubmit class="delete" action="delete" value="Deletar" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                	</g:form>
            	</div>
            </g:if>
        </div>
    </body>
</html>
